package oopchapter_interface_Printer;

public class Test {
	public static void main(String[] args) {
		InkBox inkBox = null;
		Paper paper = null;
		Printer printer = new Printer();
		
		inkBox = new BlackInkBox();
		paper = new A4();
		printer.setInkBox(inkBox);
		printer.setPaper(paper);
		printer.print();
		
		inkBox = new ColorInkBox();
		paper = new B5();
		printer.setInkBox(inkBox);
		printer.setPaper(paper);
		printer.print();
		
		paper = new A4();
		printer.setPaper(paper);
		printer.print();
	}

}
